<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<div class="page_left indexpage_left">
    <ul class="indexpage_leftu1">
        <li><a class="${empty placeId?'cur':''}" href="javascript:;" id="totalAccount">总收入</a></li>
        <c:forEach items="${placeDeviceListVo}" var="vo">
            <li>
                <a href="javascript:;" class="place ${vo.placeDto.placeid eq placeId and empty deviceId?'cur':''} ${vo.placeDto.placeid eq placeId and not empty deviceId?'curs':''}" name="${vo.placeDto.placeid}">${vo.placeDto.address}</a>
                <ul class="indexpage_leftu2" style="display: ${vo.placeDto.placeid eq placeId?'':'none'}" >
                    <li>
                        <a href="javascript:;" class="${deviceType==0?'cur':''}" >在线</a>
                        <ul class="indexpage_leftu3" style="${deviceType==0?'':'display:none'}">
                            <c:forEach items="${vo.giftList}" var="deviceInfo">
                                <li name="0"><a href="javascript:;" class="device ${deviceInfo.deviceId eq deviceId?'cur':''}" name="${deviceInfo.deviceId}">${deviceInfo.deviceName}</a></li>
                            </c:forEach>
                        </ul>
                    </li>

                    <li>
                        <a href="javascript:;" class="${deviceType==1?'cur':''}" >离线</a>
                        <ul class="indexpage_leftu3" style="${deviceType==1?'':'display:none'}">
                            <c:forEach items="${vo.currencyList}" var="deviceInfo">
                                <li name="1"><a href="javascript:;" class="device ${deviceInfo.deviceId eq deviceId?'cur':''}" name="${deviceInfo.deviceId}">${deviceInfo.deviceName}</a></li>
                            </c:forEach>
                        </ul>
                    </li>

                    <li>
                        <a href="javascript:;" class="${deviceType==2?'cur':''}" >禁用</a>
                        <ul class="indexpage_leftu3" style="${deviceType==2?'':'display:none'}">
                            <c:forEach items="${vo.dollList}" var="deviceInfo">
                                <li name="2"><a href="javascript:;" class="device ${deviceInfo.deviceId eq deviceId?'cur':''}" name="${deviceInfo.deviceId}">${deviceInfo.deviceName}</a></li>
                            </c:forEach>
                        </ul>
                    </li>

                    <li>
                        <a href="javascript:;" class="${deviceType==3?'cur':''}" >故障</a>
                        <ul class="indexpage_leftu3" style="${deviceType==3?'':'display:none'}">
                            <c:forEach items="${vo.giftExchangeList}" var="deviceInfo">
                                <li name="3"><a href="javascript:;" class="device ${deviceInfo.deviceId eq deviceId?'cur':''}" name="${deviceInfo.deviceId}">${deviceInfo.deviceName}</a></li>
                            </c:forEach>
                        </ul>
                    </li>
                </ul>
            </li>
        </c:forEach>
    </ul>
</div>
<script type="application/javascript">
    $("#totalAccount").click(function () {
        window.location.href = '${basePath}v2/account/todayView';
    });

    $(".place").click(function () {
        var placeId = $(this).attr("name");
        window.location.href = '${basePath}v2/account/todayView/'+placeId;
    });

    $(".device").click(function () {
        var deviceId = $(this).attr("name");
        var status=$(this).closest("li").attr("name");
        window.location.href = '${basePath}v2/account/todayView/${placeId}/'+deviceId+'/'+status;
    });
</script>